<?php
header('Content-Type:text/html;charset=utf-8');
date_default_timezone_set('Asia/Shanghai');
include 'session_start.inc.php';
if(isset($_POST['submit'])){
	if($_POST['username']=='sunshengli' || $_POST['username']=='hanMM' || $_POST['username']=='leiLei'){
		$_SESSION['username']=$_POST['username'];
	}
}
if(isset($_SESSION['username'])){
	exit($_SESSION['username']);
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>demo</title>
</head>
<body>
<form method="post">
	<input type="text" name="username" />
	<input type="submit" name="submit" value="登录" />
</form>
</body>
</html>
